package com.web.itemGetway.jwtUtils;



import com.web.itemGetway.Properties.jwtProperty;
import io.jsonwebtoken.Jwts;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.Map;

@Component
public class jwtUtils {
    @Autowired
    jwtProperty jwtProperty;
    public  Map<String, Object> parseJwt(String jwt) {
        return Jwts.parser().setSigningKey(jwtProperty.getSecret()).parseClaimsJws(jwt).getBody();
    }
}